//
//  MFAPMDefine.h
//  MFAPMManager
//
//  Created by zhang liyu on 2019/5/30.
//

#ifndef MFAPMDefine_h
#define MFAPMDefine_h

//Project

#define MFAPM_PROJECT_NAME @"mfpp_iOS"

//APP Key
#if MFAPM_PROJECT_ENVIRONMENT_SWITCH_RELEASE == 1

//正式环境
#define MFAPM_APP_KEY @"eca38b5e40f8445b9c77d6a9bf6a92b1"

#else

//测试环境
#define MFAPM_APP_KEY @"f78fd6a7d5d5444b9fd48fdf3d37b457"

#endif

//Config

#define kMFAPMConfigDefaultUploadInterval (5 * 60)

#define kMFAPMConfigDefaultMemoryMaxCacheItemNUM (100)

#define kMFAPMConfigDefaultDiskMaxCacheItemNUM (500)

#define kMFAPMConfigDefaultSingleRequestMaxUploadItemNUM (100)

//单位KB
#define kMFAPMConfigDefaultScreenShotUploadImgSize (30)

//Device

#define kMFAPMDeviceUUID @"cn.MissFresh.kMFAPMDeviceUUID"

//ScreenShot

#define kMFAPMScreenShotMaxCacheReqeuestNUM (5)

//Request

//Base URL
#define MFAPM_REQUEST_BASE_URL_STRING @"https://apm.missfresh.net"

//配置信息获取接口
#define MFAPM_REQUEST_URL_CONFIG @"/api/apm/config"

//事件上报接口
#define MFAPM_REQUEST_URL_UPLOAD @"/api/apm/collect"


//上传接口是否加密
#if MFAPM_PROJECT_ENVIRONMENT_SWITCH_RELEASE == 1

//正式环境下，密文传送，打开加密上传
#define MFAPM_REQUEST_ENCRYPT_STATUS @"1"

#else

//调试模式下，明文传送，关闭加密上传
#define MFAPM_REQUEST_ENCRYPT_STATUS @"0"

#endif

//加密请求中对秘钥RSA加密的公钥
#define MFAPM_REQUEST_ENCRYPT_RSA_PUB_KEY @"MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnGFRhWCoq6+yhfmxlS36Nm2HnE3/c1eFqHRlX9VPf270u9VcZLCR724kXe432sb8MrbHJzKsrzs7jGpoYlJ8j/p1sgLjKH7xjbczt4dpCqSsgRH/yDXQ9XcDfCDAaE5vFB1TAZHzEhRkqJyvll22X2mfCIVTkE5I/ReJMuGUJM2SF69/LZjQRRvUn1ZKNh84zo+BFxAXjixB6EZdfwDHc6XBsEI8+J4ed7JPeqpYN1uA0uBuLdwT0C7gY5/n+HeuaNTsI0akwfyfBHzX0Z+SFIA31V2Ek6RmSQTubkXRRZGbotytdzM4Tf9UzLzdmCP/GjcPUXe9+eUIcR1VUws2WQIDAQAB"

#endif /* MFAPMDefine_h */
